package cn.cvs.service;

import cn.cvs.pojo.SysUser;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SysUserPlusService extends IService<SysUser> {

    public List<SysUser> getUserByUsrName(String usrName);
    public SysUser login(String usrName,String password);
    public SysUser login(String usrName);

    public String encryptPassword(Object plaintextPassword) throws IllegalArgumentException;

    IPage<SysUser> selectPage(Page<SysUser> page, QueryWrapper<SysUser> wrapper);
}
